<?php

/**
 *      [Discuz!] (C)2001-2099 Comsenz Inc.
 *      This is NOT a freeware, use is subject to license terms
 *
 *      $Id: forum.php 29133 2012-03-27 08:04:24Z liulanbo $
 */

define('APPTYPEID', 2);
define('CURSCRIPT', 'forum');


require './source/class/class_core.php';
require './source/function/function_forum.php';

$modarray = array( 'index', 'poll', 'xml' );
if( !empty( $_SERVER['PATH_INFO' ] ) ){
	$_request				= explode( '/', $_SERVER['PATH_INFO' ] );
	C::app()->var['mod']	= array_pop( explode( '=', $_request[1] ) );
	$_GET['type']			= array_pop( explode( '=', $_request[2] ) );
}

$mod = !in_array(C::app()->var['mod'], $modarray) ? 'index' : C::app()->var['mod'];

define( 'CURMODULE', $mod );

C::app()->init();

loadforum();
set_rssauth();
runhooks();


$navtitle = str_replace('{bbname}', $_G['setting']['bbname'], $_G['setting']['seotitle']['forum']);
require DISCUZ_ROOT.'./source/module/goodstone/'.$mod.'.php';

?>